package com.tencent.wxcloudrun.dto;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author lichongbing
 * @version 1.0.0
 * @createdate 2023/3/20 15:23
 * @description: TODO
 */
@Data
public class Addition {
    private String name;
    private Integer id;
    private Integer pid;
    private String goodsId;
    private Integer price;
    private Integer type;
    private String active;
    private List<Addition> items;
    public  void  addChild(Addition platform){
        if(items == null){
            items = new ArrayList<>();
        }
        items.add(platform);
    }
}
